// 专门封装用户相关接口
import request from '../utils/request'
export const regApi = obj => request.post('/api/reg', obj)
export const loginApi = obj => request.post('/api/login', obj)
export const getUserApi = () => request.get('/my/userinfo')
export const getMenuApi = () => request.get('/my/menus')
export const updateUserApi = obj => request.put('/my/userinfo', obj)
export const avatarApi = str => request.patch('/my/update/avatar', { avatar: str })
export const updatePwdApi = obj => request.patch('/my/updatepwd', obj)
